﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class EventAddRotation : MonoBehaviour
{
    public RectTransform targetTsf;
    public float durTime = 1;


    public void AddRotation(int angle)
    {
        targetTsf.DOLocalRotate(targetTsf.rotation.eulerAngles + new Vector3(0, 0, angle), durTime);
    }
}
